package com.atguigu.mediator.smarthouse;

//抽象同事类
public abstract class Colleague {

	private Mediator mediator; // 依赖中介对象
	public String name;

	public Colleague(Mediator mediator, String name) {

		this.mediator = mediator;
		this.name = name;

	}

	public Mediator getMediator() {
		return this.mediator;
	}

	/**
	 * 定义的抽象方法
	 *
	 * @param stateChange
	 */
	public abstract void SendMessage(int stateChange);
}
